<?php
	
	class config {
		
		var $db_type = "mysql";
		var $db_host = "";
		var $db_username = "";
		var $db_password = "";
		var $db_database = "";
		var $db_prefix = "haiou_stock_";

		var $site_url = "/";
		var $site_index = "module.php";
		var $site_admin = "admin";
		var $site_name = "haioo";
		var $site_timezone = "Asia/Shanghai";
		var $site_charset = "utf8";

		var $dir_uploads = "uploads";
		var $dir_template = "templates";

		var $installed = "1";
		
		var $product_type=array('采购入库','退货入库','非采直入','借用回库','其他入库','调拨入库');
		
		var $orders_type=array('订单出库','报损出库','样品出库','内销出库','其他出库','调拨出库');
		
		var $priceline=10;//default
		
		var $priceunderline=5;//default


		function config() {
		    global $default_config;
			$this->site_admin = str_replace("//", "/", $this->site_url.$this->site_admin.'/'.$this->site_index.'?');
			$this->site_index = str_replace("//", "/", $this->site_url.$this->site_index.'?');
			$this->db_host=$default_config['dbhost'];
			$this->db_username=$default_config['dbuser'];
			$this->db_password=$default_config['dbpass'];
			$this->db_database=$default_config['dbname'];
				
		}		
		
	}
?>
